﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2102A.Shopping.Domain
{
    /// <summary>
    /// 订单对应的物流主表
    /// </summary>
    [Table("tb_logistic_master")]
    public class LogisticMasterEntity:AuditField
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string LogisticNo { get; set; } = Guid.NewGuid().ToString("N");
        public string OrderNo { get; set; } //订单号

        //快递金额	快递公司	派送员	电话

    }


    /// <summary>
    /// 物流明细表
    /// </summary>
    [Table("tb_logistic_deatil")]
    public class LogisticDetailEntity:AuditField
    {
        public Guid Id { get; set; }
        public string LogisticNo { get; set; } //物流单号
        public DateTime? StateTime { get; set; }
        public DateTime? EndTime { get; set; }
        public string Content { get; set; } // 每一步的记录

    }
}
